﻿@model OSBLE.Models.RegisterModel

@using OSBLE.Models
@using Microsoft.Web.Helpers;

@{
    Layout = "~/Views/Shared/_LogOn.cshtml";
    ViewBag.Title = "Register";
}

<h2>Create a New Account @Helpers.CreateToolTip(ToolTips.AccountRegisterLogin) </h2>

<!--
<p>
    Use the form below to create a new account. 
</p>
<p>
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>
-->

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div>

        <h3>Login Information</h3>

        <div class="editor-label">
            @Html.LabelFor(m => m.Email)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Email)<br />
            @Html.ValidationMessageFor(m => m.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmEmail)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.ConfirmEmail)<br />
            @Html.ValidationMessageFor(m => m.ConfirmEmail)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Password)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.Password)<br />
            @Html.ValidationMessageFor(m => m.Password)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.ConfirmPassword)<br />
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </div>


        <h3>Identification</h3>

        <div class="editor-label">
            @Html.LabelFor(m => m.FirstName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.FirstName)<br />
            @Html.ValidationMessageFor(m => m.FirstName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.LastName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.LastName)<br />
            @Html.ValidationMessageFor(m => m.LastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Identification, "Company Name")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Identification)<br />
            @Html.ValidationMessageFor(m => m.Identification)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmIdentification, "Confirm Company Name")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.ConfirmIdentification)<br />
            @Html.ValidationMessageFor(m => m.ConfirmIdentification)
        </div>

        <div>
            @Html.Partial("_ReCaptcha")
        </div>

        <p>
            <input type="submit" value="Register" />
        </p>
    </div>
}
